<template>
    <div>
            欢迎 {{mobile}} 前来：
            <br>
            <ul v-for="i in userlist">
                <li>{{i.mobile}}</li>
            </ul>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                mobile:localStorage.getItem('mobile'),
                userlist:[]
            }
        },
        methods: {
            getuserlist(){
                this.$axios.get('/userM/').then(res=>{
                    this.userlist= res.data.list
                })
            }
        },
        mounted() {
            this.getuserlist()
        },
    }
</script>

<style scoped>

</style>